local config = {}
require'colorizer'.setup()


function config.statusline()
	-- require('modules.ui.spaceline')
	-- require('modules.ui.eviline')
	-- require('bubbly.nvim').setup({})
	if 1 == vim.g.uselualine then
		require("modules.ui.lualine")
	end
  if  'galaxyline'== vim.g.statusline then
		require("modules.ui.galaxyline")
  end

  if  1 == vim.g.usestatusline then
    local statusline = require('statusline')
    statusline.tabline = false
  end
end
function _G.set_terminal_keymaps()
  local opts = {buffer = 0}
  vim.keymap.set('t', '<esc>', [[<C-\><C-n>]], opts)
  vim.keymap.set('t', 'jk', [[<C-\><C-n>]], opts)
  vim.keymap.set('t', '<C-h>', [[<Cmd>wincmd h<CR>]], opts)
  vim.keymap.set('t', '<C-j>', [[<Cmd>wincmd j<CR>]], opts)
  vim.keymap.set('t', '<C-k>', [[<Cmd>wincmd k<CR>]], opts)
  vim.keymap.set('t', '<C-l>', [[<Cmd>wincmd l<CR>]], opts)
end
vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
function config.explorer()
  require("toggleterm").setup()
  set_terminal_keymaps()
  -- require("modules.ui.nvim_tree")
	-- require("modules.ui.stickybuf")
	-- require("modules.ui.litee")
end


require("modules.dev.refactor")
require("modules.ui.colorscheme")
-- require("modules.ui.nvim-bqf")
--require("modules.ui.sidebar")
-- function config.indent_blakline()
-- 	vim.g.indent_blankline_char = "│"
-- 	vim.g.indent_blankline_show_first_indent_level = true
-- 	vim.g.indent_blankline_filetype_exclude = {
-- 		"startify",
-- 		"dashboard",
-- 		"dotooagenda",
-- 		"log",
-- 		"fugitive",
-- 		"gitcommit",
-- 		"packer",
-- 		"vimwiki",
-- 		"markdown",
-- 		"json",
-- 		"txt",
-- 		"vista",
-- 		"help",
-- 		"todoist",
-- 		"NvimTree",
-- 		"peekaboo",
-- 		"git",
-- 		"TelescopePrompt",
-- 		"undotree",
-- 		"flutterToolsOutline",
-- 		"", -- for all buffers without a file type
-- 	}
-- 	vim.g.indent_blankline_buftype_exclude = { "terminal", "nofile" }
-- 	vim.g.indent_blankline_show_trailing_blankline_indent = false
-- 	vim.g.indent_blankline_show_current_context = true
-- 	vim.g.indent_blankline_context_patterns = {
-- 		"class",
-- 		"function",
-- 		"method",
-- 		"block",
-- 		"list_literal",
-- 		"selector",
-- 		"^if",
-- 		"^table",
-- 		"if_statement",
-- 		"while",
-- 		"for",
-- 	}
-- 	-- because lazy load indent-blankline so need readd this autocmd
-- 	vim.cmd("autocmd CursorMoved * IndentBlanklineRefresh")
-- end

return config
